import request from '@/utils/request'

// 获取部门
export const getDepartmentList = () => request.get('company/department')

// 获取部门负责人
export const getManagerList = () => request.get('sys/user/simple')

// 新增部门
export const addDepartment = data => request.post('company/department', data)

// 获取部门信息
export const getDepDetail = id => request.get(`company/department/${id}`)

// 编辑部门
export const editDepartment = data => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDept = id => request.delete(`company/department/${id}`)
